package Client;

import DAL.SysUser_DAL;
import GUI.Frame_Win;

public class BusinessImplements {
	private static BusinessImplements instance;
	private ServerProxy serverProxy;
	private SysUser_DAL UserLogin;
	private Frame_Win mainFrame;
	
	private BusinessImplements(){
		
		
		
	}
	
	public Frame_Win getMainFrame() {
		return mainFrame;
	}

	

	public ServerProxy getServerProxy() {
		return serverProxy;
	}
	

	public void setServerProxy(ServerProxy serverProxy)
	{
		if(this.serverProxy==null)
		this.serverProxy = serverProxy;
	}
	
	public SysUser_DAL getUserLogin() {
		return UserLogin;
	}
	
	public void setUserLogin(SysUser_DAL user) {
		this.UserLogin = user;
	}

	public static BusinessImplements GetInstance(){
		if (instance==null)
			instance=new BusinessImplements();
		return instance;
	}

	public void setMainFrame(Frame_Win mainFrame) {
		this.mainFrame = mainFrame;
		
	}	

}
